#ifndef POINTSBIN
#define POINTSBIN

#include <base\vec3d.h>
#include <base\vec2i.h>

#include <iostream>

using namespace std;

class pointsBin {

  struct s_point_set {
    double height;
    bool set;
    int x;
    int y;

    s_point_set() : height(0.0), set(false) {
    }
  };

  vec2i tile_id;
  vec2i size;

  s_point_set **heights;

  int filled;

public:

  void save(string filename, float multiplier = 10.0);

  pointsBin(vec2i tile_id_, vec2i size_);
  ~pointsBin();

  bool addHeight(int global_x, int global_y, double height);

};

#endif